//
// Created by Vincent_Vic on 2020/4/15.
//

#ifndef DATAORGANIZATION_COMPRESS_H
#define DATAORGANIZATION_COMPRESS_H

#include<vector>
#include <rpcndr.h>

using namespace std;

class Compress {
public:

    static const int LEN=256;
    unsigned char count[LEN];

private:




    // 统计词频
    void countChar(char* bs,int len) {

        for (int i = 0; i < len; ++i) {
            if (bs[i] < 0) {
                //汉字部分
                count[LEN + bs[i]]++;
            } else {
                count[bs[i]]++;
            }
        }
    }

    // TODO 压缩算法未完成

};


#endif //DATAORGANIZATION_COMPRESS_H
